import Actions from './actions';
export interface IMainReducer {
  isReady: boolean;
  isLoading?: boolean;
  blacklistModel: boolean;
  detail: {
    deviceId: string;
    thirdPartyUnitId: string;
  };
  selectDistance: {
    id: string;
    name?: string;
  };
  userInfo: {
    id: string;
    name?: string;
    pictureUrl: string;
    communityId: string;
    houseId: string;
    phone: string;
  };
  facePictureUrl?: string;
  doorName?: string;
  doorList?: [];
  unitDoorList?: [];
}

export type ActionType = ReturnType<typeof Actions>;
export type IAllReducerProps = {
  main: IMainReducer;

  [name: string]: any;
};

//默认是全部的属性,可以自定义
export type IProps = IAllReducerProps & ActionType;

//create by moon https://github.com/creasy2010/moon
